//
//  DoingPaperMainController.h
//  DoingPaper
//
//  Created by zhuxuhong on 16/7/25.
//  Copyright © 2016年 zhuxuhong. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ImageTitleButton.h"
#import "PaperParam.h"
#import "PaperItem.h"
#import "PaperModel.h"
#import "PaperDataManager.h"
#import "PaperQuestion.h"
#import "PaperItemCellTableView.h"
#import "PaperCardController.h"
#import <MBProgressHUD/MBProgressHUD.h>

typedef void (^SubmitPaperCompletion)(void);

// nav
@interface DoingPaperMainController : UINavigationController

-(instancetype)initWithParams: (NSDictionary*)dict submitPaperCompletion: (SubmitPaperCompletion)completion;

@end


// root
@interface DoingPaperController : UIViewController

@property(nonatomic)BOOL isCollectQuestionsScanning; //浏览收藏的题
@property(nonatomic,copy)NSArray *collectQuestions;

@property(nonatomic,strong)PaperParam *param;
@property(nonatomic,strong)PaperModel *paper;

// functions
-(instancetype)initWithParams: (NSDictionary*)dict submitPaperCompletion: (SubmitPaperCompletion)completion;

@end
